#pragma once
#include <mutex>
#include <atomic>

namespace CppWinApi::HttpClients
{
    // http 全局数据
    class HttpGlobalResource
    {
    private:
        static std::mutex counterMutex;
        static std::atomic<int> resourceCount; // 原子计数器更高效
    public:
        static void InitResource();
        static void ReleaseResource();
    };
}